From: Jonas Dreßler Date: Thu, 20 Jun 2019 21:09:37 +0000 (+0200) Subject: altTab: Fix a wrong variable name X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~114 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c67460a1e3b9103cbcd1adf175c03f2cbc37b4a2;p=gnome-shell.git altTab: Fix a wrong variable name https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/587 --- diff --git a/js/ui/altTab.js b/js/ui/altTab.js index 6c9aaf1c1..8b22afa2d 100644 --- a/js/ui/altTab.js +++ b/js/ui/altTab.js @@ -732,8 +732,8 @@ class AppSwitcher extends SwitcherPopup.SwitcherList { let iconPadding = themeNode.get_horizontal_padding(); let iconBorder = themeNode.get_border_width(St.Side.LEFT) + themeNode.get_border_width(St.Side.RIGHT); - let [iconMinHeight, iconNaturalHeight] = this.icons[j].label.get_preferred_height(-1); - let iconSpacing = iconNaturalHeight + iconPadding + iconBorder; + let [, labelNaturalHeight] = this.icons[j].label.get_preferred_height(-1); + let iconSpacing = labelNaturalHeight + iconPadding + iconBorder; let totalSpacing = this._list.spacing * (this._items.length - 1); // We just assume the whole screen here due to weirdness happing with the passed width